{include file="public/header"}
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>增加内容</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="{:url('Good/goodLimit')}" enctype="multipart/form-data">
    	<div class="form-group">
        <div class="label">
          <label>商品编号：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="{$good['id']}" name="good_id" data-validate="required:请输入编号" readonly/>
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>商品名：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="{$good['name']}" name="name" data-validate="required:请输入商品名" readonly/>
          <div class="tips"></div>
        </div>
      </div>
       <div class="form-group">
        <div class="label">
          <label>划线价格：</label>
        </div>
        <div class="field">
          <input type="number" class="input w50" value="" name="price" data-validate="required:请输入价格" />
          <div class="tips"></div>
        </div>
      </div>
       <div class="form-group">
        <div class="label">
          <label>商城价格：</label>
        </div>
        <div class="field">
          <input type="number" class="input w50" value="{$good['price']}" name="price_shop" data-validate="required:请输入价格" readonly/>
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>商品库存：</label>
        </div>
        <div class="field">
          <input type="number" class="input w50" value="" name="num" data-validate="required:请输入库存" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>图片：</label>
        </div>
        <div class="field">
          <input type="text" readonly name="img" id="url1" class="input tips" style="width:25%; float:left;" value="{$good['photo_x']}" data-toggle="hover" data-place="right" readonly/>
          <input type="button"  class="button bg-blue margin-left" value="+ 浏览上传" >
          <input type="file" onchange="url1.value=this.value" style="position:relative; z-index:1000px; filter:alpha(opacity=0);-moz-opacity:0; opacity:0; left:-155px;" />
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>开始时间：</label>
        </div>
        <div class="field">
          <input style="line-height:17px;display:inline-block" class="input w50" type="datetime-local" name="addtime" data-validate="required:请输入开始时间">
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>结束时间：</label>
        </div>
        <div class="field">
          <input style="line-height:17px;display:inline-block" class="input w50" type="datetime-local" name="endtime" data-validate="required:请输入结束时间">
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>
</body>
</html>